@layout("/backend/common/_container.html"){
    <style>
        .dhcc-form .ele {
            width: 70%;
            padding-right: 0px;
        }
    </style>
<div class="dhcc-form">
    <form method='post' id="cdcLocationInfoForm" name="cdcLocationInfoForm" enctype="multipart/form-data">
	
        <#Hidden id="id" value="${cdcLocation.id}"/>

		<div class="row row-lg">
            <div class="col-sm-6">
                <#Input id="xcode" name="索引码" value="${cdcLocation.xcode}"/>
            </div>
            <div class="col-sm-6">
                <#Input id="code" name="代码" value="${cdcLocation.code}"/>
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#Input id="description" name="描述" value="${cdcLocation.description}"/>
            </div>
            <div class="col-sm-6">
                <#Input id="description2" name="别名" value="${cdcLocation.description2}"/>
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#SelectForm id="busLocTypeId" name="类型" url="/cdc/cdcdictionary/query/HisBase/bus_loc_type" key="id"
                    text="description" hasEmpty="false" width="220px" value="${cdcLocation.busLocTypeId}"/>
            </div>
            <div class="col-sm-6">
                <#SelectForm id="busLocRoleId" name="角色" url="/cdc/cdcdictionary/query/HisBase/bus_loc_role" key="id"
                text="description" hasEmpty="false" width="220px" value="${cdcLocation.busLocRoleId}"/>
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#SwitchBox id="isOper" name="手术科室" value="${cdcLocation.isOper}"/>
            </div>
            <div class="col-sm-6">
                <#SwitchBox id="isNicu" name="新生儿病房" value="${cdcLocation.isNicu}"/>
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#SwitchBox id="isIcu" name="ICU病房" value="${cdcLocation.isIcu}"/>
            </div>
            <div class="col-sm-6">
                <#SelectForm id="busLocIcuId" name="ICU类型" url="/cdc/cdcdictionary/query/HisBase/bus_loc_icu" key="id"
                text="description" hasEmpty="false" width="220px" value="${cdcLocation.busLocIcuId}"/>
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#SelectForm id="hospitalId" name="所属院区" url="/cdc/cdchospital/query" key="id" text="description" hasEmpty="false" width="220px" onSelect="CdcLocationInfoDlg.selectHosp" value="${cdcLocation.hospitalId}"/>
            </div>
            <div class="col-sm-6">
                <#LookUpLoc id="parLocId" name="父科室" value="${cdcLocation.parLoc.id!}" desc="${cdcLocation.parLoc.description!}"/>
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#LookUpDept id="sysDeptId" name="系统部门" value="${cdcLocation.sysDept.id!}" desc="${cdcLocation.sysDept.name!}"/>
            </div>
            <div class="col-sm-6">
                <#SwitchBox id="isActive" name="是否有效" value="${cdcLocation.isActive}"/>
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#SelectForm id="dataId" name="数据类型" url="/cdc/cdcdata/query" key="id" text="description" hasEmpty="false" width="220px" params="{'code':'HisBase'}"/>
            </div>
        </div>
        <div class="toolbar">
        	<#Button name="保存" id="ensure" icon="icon-w-save" clickFun="CdcLocationInfoDlg.editSubmit()"/>
        	<#Button btnCss="l-bt-red" name="关闭" id="cancel" icon="icon-w-close" clickFun="CdcLocationInfoDlg.close()"/>
        </div>
    </form>
</div>
<script src="${ctxPath}/static/backend/cdc/cdclocation/cdclocation_info.js"></script>
@}
